package com.tank.constant;

import javafx.geometry.Point2D;

public enum Direction {

    UP(new Point2D(0, -1), 0),
    DOWN(new Point2D(0, 1), 180),
    LEFT(new Point2D(-1, 0), 270),
    RIGHT(new Point2D(1, 0), 90),
    ;

    private Point2D vector;

    private double rotation;

    Direction(Point2D vector, double rotation) {
        this.vector = vector;
        this.rotation = rotation;
    }

    public Point2D getVector() {
        return vector;
    }

    public double getRotation() {
        return rotation;
    }
}
